<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>avalon: Deliver Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">avalon
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_deliver-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">Deliver Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>类，用于处理消息的投递。  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="deliver_8h_source.html">deliver.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7bffed391626bd10d14c1bfad8d9e64e" id="r_a7bffed391626bd10d14c1bfad8d9e64e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7bffed391626bd10d14c1bfad8d9e64e">Deliver</a> (const std::string &amp;app_name, const std::string &amp;sub_name, const char *<a class="el" href="#ab5ed5090feebd3f79364f7af311b5ea4">data</a>, int <a class="el" href="#ac38bf2ecd3e5e067eba29ee1e7bb7a26">size</a>, int <a class="el" href="#a31fe9e0abe81edde7602aae93962eaec">flag</a>)</td></tr>
<tr class="memdesc:a7bffed391626bd10d14c1bfad8d9e64e"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数，初始化Deliver对象。  <br /></td></tr>
<tr class="separator:a7bffed391626bd10d14c1bfad8d9e64e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac015d1cb31e71cb00732af2d683ff765" id="r_ac015d1cb31e71cb00732af2d683ff765"><td class="memItemLeft" align="right" valign="top"><a id="ac015d1cb31e71cb00732af2d683ff765" name="ac015d1cb31e71cb00732af2d683ff765"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><b>~Deliver</b> ()</td></tr>
<tr class="memdesc:ac015d1cb31e71cb00732af2d683ff765"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数，释放Deliver对象。 <br /></td></tr>
<tr class="separator:ac015d1cb31e71cb00732af2d683ff765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67c93117a9180e6f362b54db90d7240c" id="r_a67c93117a9180e6f362b54db90d7240c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a67c93117a9180e6f362b54db90d7240c">appName</a> () const</td></tr>
<tr class="memdesc:a67c93117a9180e6f362b54db90d7240c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取应用名称。  <br /></td></tr>
<tr class="separator:a67c93117a9180e6f362b54db90d7240c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a629a3c50354b41bfda51533a667e102c" id="r_a629a3c50354b41bfda51533a667e102c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a629a3c50354b41bfda51533a667e102c">subName</a> () const</td></tr>
<tr class="memdesc:a629a3c50354b41bfda51533a667e102c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取订阅名称。  <br /></td></tr>
<tr class="separator:a629a3c50354b41bfda51533a667e102c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5ed5090feebd3f79364f7af311b5ea4" id="r_ab5ed5090feebd3f79364f7af311b5ea4"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab5ed5090feebd3f79364f7af311b5ea4">data</a> () const</td></tr>
<tr class="memdesc:ab5ed5090feebd3f79364f7af311b5ea4"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取数据指针。  <br /></td></tr>
<tr class="separator:ab5ed5090feebd3f79364f7af311b5ea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac38bf2ecd3e5e067eba29ee1e7bb7a26" id="r_ac38bf2ecd3e5e067eba29ee1e7bb7a26"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac38bf2ecd3e5e067eba29ee1e7bb7a26">size</a> () const</td></tr>
<tr class="memdesc:ac38bf2ecd3e5e067eba29ee1e7bb7a26"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取数据大小。  <br /></td></tr>
<tr class="separator:ac38bf2ecd3e5e067eba29ee1e7bb7a26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31fe9e0abe81edde7602aae93962eaec" id="r_a31fe9e0abe81edde7602aae93962eaec"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a31fe9e0abe81edde7602aae93962eaec">flag</a> () const</td></tr>
<tr class="memdesc:a31fe9e0abe81edde7602aae93962eaec"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取标志。  <br /></td></tr>
<tr class="separator:a31fe9e0abe81edde7602aae93962eaec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f51513380c6255ecc8bea12593e9540" id="r_a4f51513380c6255ecc8bea12593e9540"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_reply.html">Reply</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4f51513380c6255ecc8bea12593e9540">reply</a> ()</td></tr>
<tr class="memdesc:a4f51513380c6255ecc8bea12593e9540"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取回复。  <br /></td></tr>
<tr class="separator:a4f51513380c6255ecc8bea12593e9540"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad55d2243e358a5d397d7e3aff55c3db" id="r_aad55d2243e358a5d397d7e3aff55c3db"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aad55d2243e358a5d397d7e3aff55c3db">isReplied</a> ()</td></tr>
<tr class="memdesc:aad55d2243e358a5d397d7e3aff55c3db"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查是否已回复。  <br /></td></tr>
<tr class="separator:aad55d2243e358a5d397d7e3aff55c3db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fd1e1719e6f4784c6895e7762ac9002" id="r_a8fd1e1719e6f4784c6895e7762ac9002"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8fd1e1719e6f4784c6895e7762ac9002">setReplied</a> (bool replied)</td></tr>
<tr class="memdesc:a8fd1e1719e6f4784c6895e7762ac9002"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置回复状态。  <br /></td></tr>
<tr class="separator:a8fd1e1719e6f4784c6895e7762ac9002"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a849c168dc7ff635842a2ef36f6d9d922" id="r_a849c168dc7ff635842a2ef36f6d9d922"><td class="memItemLeft" align="right" valign="top">std::mutex *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a849c168dc7ff635842a2ef36f6d9d922">mutex</a> ()</td></tr>
<tr class="memdesc:a849c168dc7ff635842a2ef36f6d9d922"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取互斥锁。  <br /></td></tr>
<tr class="separator:a849c168dc7ff635842a2ef36f6d9d922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b65097be32fcf618eac00f4aeaac818" id="r_a6b65097be32fcf618eac00f4aeaac818"><td class="memItemLeft" align="right" valign="top">std::condition_variable *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6b65097be32fcf618eac00f4aeaac818">cond</a> ()</td></tr>
<tr class="memdesc:a6b65097be32fcf618eac00f4aeaac818"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取条件变量。  <br /></td></tr>
<tr class="separator:a6b65097be32fcf618eac00f4aeaac818"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>类，用于处理消息的投递。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7bffed391626bd10d14c1bfad8d9e64e" name="a7bffed391626bd10d14c1bfad8d9e64e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bffed391626bd10d14c1bfad8d9e64e">&#9670;&#160;</a></span>Deliver()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Deliver::Deliver </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>app_name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>sub_name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>flag</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数，初始化Deliver对象。 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">app_name</td><td>应用名称 </td></tr>
    <tr><td class="paramname">sub_name</td><td>订阅名称 </td></tr>
    <tr><td class="paramname">data</td><td>数据指针 </td></tr>
    <tr><td class="paramname">size</td><td>数据大小 </td></tr>
    <tr><td class="paramname">flag</td><td>标志 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a67c93117a9180e6f362b54db90d7240c" name="a67c93117a9180e6f362b54db90d7240c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67c93117a9180e6f362b54db90d7240c">&#9670;&#160;</a></span>appName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Deliver::appName </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取应用名称。 </p>
<dl class="section return"><dt>Returns</dt><dd>应用名称 </dd></dl>

</div>
</div>
<a id="a6b65097be32fcf618eac00f4aeaac818" name="a6b65097be32fcf618eac00f4aeaac818"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b65097be32fcf618eac00f4aeaac818">&#9670;&#160;</a></span>cond()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::condition_variable * Deliver::cond </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取条件变量。 </p>
<dl class="section return"><dt>Returns</dt><dd>条件变量指针 </dd></dl>

</div>
</div>
<a id="ab5ed5090feebd3f79364f7af311b5ea4" name="ab5ed5090feebd3f79364f7af311b5ea4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5ed5090feebd3f79364f7af311b5ea4">&#9670;&#160;</a></span>data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * Deliver::data </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取数据指针。 </p>
<dl class="section return"><dt>Returns</dt><dd>数据指针 </dd></dl>

</div>
</div>
<a id="a31fe9e0abe81edde7602aae93962eaec" name="a31fe9e0abe81edde7602aae93962eaec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31fe9e0abe81edde7602aae93962eaec">&#9670;&#160;</a></span>flag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Deliver::flag </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取标志。 </p>
<dl class="section return"><dt>Returns</dt><dd>标志 </dd></dl>

</div>
</div>
<a id="aad55d2243e358a5d397d7e3aff55c3db" name="aad55d2243e358a5d397d7e3aff55c3db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad55d2243e358a5d397d7e3aff55c3db">&#9670;&#160;</a></span>isReplied()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Deliver::isReplied </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>检查是否已回复。 </p>
<dl class="section return"><dt>Returns</dt><dd>是否已回复 </dd></dl>

</div>
</div>
<a id="a849c168dc7ff635842a2ef36f6d9d922" name="a849c168dc7ff635842a2ef36f6d9d922"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a849c168dc7ff635842a2ef36f6d9d922">&#9670;&#160;</a></span>mutex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::mutex * Deliver::mutex </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取互斥锁。 </p>
<dl class="section return"><dt>Returns</dt><dd>互斥锁指针 </dd></dl>

</div>
</div>
<a id="a4f51513380c6255ecc8bea12593e9540" name="a4f51513380c6255ecc8bea12593e9540"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f51513380c6255ecc8bea12593e9540">&#9670;&#160;</a></span>reply()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_reply.html">Reply</a> * Deliver::reply </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取回复。 </p>
<dl class="section return"><dt>Returns</dt><dd>回复指针 </dd></dl>

</div>
</div>
<a id="a8fd1e1719e6f4784c6895e7762ac9002" name="a8fd1e1719e6f4784c6895e7762ac9002"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fd1e1719e6f4784c6895e7762ac9002">&#9670;&#160;</a></span>setReplied()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Deliver::setReplied </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>replied</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置回复状态。 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">replied</td><td>回复状态 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac38bf2ecd3e5e067eba29ee1e7bb7a26" name="ac38bf2ecd3e5e067eba29ee1e7bb7a26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac38bf2ecd3e5e067eba29ee1e7bb7a26">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Deliver::size </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取数据大小。 </p>
<dl class="section return"><dt>Returns</dt><dd>数据大小 </dd></dl>

</div>
</div>
<a id="a629a3c50354b41bfda51533a667e102c" name="a629a3c50354b41bfda51533a667e102c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a629a3c50354b41bfda51533a667e102c">&#9670;&#160;</a></span>subName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Deliver::subName </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取订阅名称。 </p>
<dl class="section return"><dt>Returns</dt><dd>订阅名称 </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>E:/avalon/src/libavalon/<a class="el" href="deliver_8h_source.html">deliver.h</a></li>
<li>E:/avalon/src/libavalon/<b>deliver.cpp</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
